﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace ElfTyping.Animations
{
    public class HealingCircleAnimation : Animation
    {
        public HealingCircleAnimation()
            : base(@"Textures\GameState\Spell_Heal", 28, 1f / 28)
        {
            Frames = new List<Rectangle>();
            for (int row = 0; row < 4; row++)
            {
                for (int col = 0; col < 7; col++)
                {
                    Frames.Add(new Rectangle(col * 71, row * 72, 72, 72));
                }
            }

            SetAnimateOnce();
        }        
    }

    public class HealingSparklesAnimation : Animation
    {
        public HealingSparklesAnimation()
            : base(@"Textures\GameState\Spell_Heal", 22, 1f / 22)
        {
            Frames = new List<Rectangle>();
            for (int row = 0; row < 3; row++)
            {
                for (int col = 0; col < 7; col++)
                {
                    Frames.Add(new Rectangle(col * 67, 319 + row * 40, 52, 32));
                }
            }

            Frames.Add(new Rectangle(300, 450, 52, 53)); // blank last frame.

            SetAnimateOnce();
        }
    }
}
